<style>
    .agents div{
        margin-bottom: 10px;
    }
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-group_ids" class="control-label col-xs-12 col-sm-2">{:__('服务商等级')}:</label>
        <div class="col-xs-12 col-sm-4">
            {$serverList}
        </div>
    </div>


    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">{:__('所属区域')}:</label>
        <div class="col-xs-12 col-sm-4">

            <div class="form-inline" data-toggle="cxselect" data-selects="regione,province,city,area">
                <select class="regione form-control" name="row[regione]" data-url="ajax/rowareaNew"></select>
                <select class="province form-control" name="row[province]" data-url="ajax/rowareaNew"></select>
                <select class="city form-control" name="row[city]" data-url="ajax/rowareaNew"></select>
                <select class="area form-control" name="row[area]" data-url="ajax/rowareaNew"></select>
            </div>

        </div>
    </div>

    <!--<div class="form-group is_agent_div">-->
        <!--<label for="c-is_agent" class="control-label col-xs-12 col-sm-2">{:__('Is agent')}:</label>-->
        <!--<div class="col-xs-12 col-sm-4">-->
            <!--{:build_radios('row[is_agent]', ['0'=>__('否'), '1'=>__('是')], '0')}-->
        <!--</div>-->
    <!--</div>-->
    <!--<div class="form-group is_shop_div">-->
        <!--<label for="c-is_shop" class="control-label col-xs-12 col-sm-2">{:__('Is shop')}:</label>-->
        <!--<div class="col-xs-12 col-sm-4">-->
            <!--{:build_radios('row[is_shop]', ['0'=>__('否'), '1'=>__('是')], '0')}-->
        <!--</div>-->
    <!--</div>-->
    <div class="form-group is_shop_div">
        <label for="c-is_shop" class="control-label col-xs-12 col-sm-2">{:__('Is VIP')}:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_radios('row[is_vip]', ['0'=>__('否'), '1'=>__('是')], '0')}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Parent id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-source="user/user/index" data-field="nickname" data-params='{"custom[server_type]":"0"}' class="form-control selectpage" name="row[parent_id]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-password" data-rule="" class="form-control" name="row[password]" type="text" value="" placeholder="" autocomplete="new-password" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-email" data-rule="" class="form-control" name="row[email]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-mobile" data-rule="" class="form-control" name="row[mobile]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Consume_res')}%:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-consume_res" data-rule="" class="form-control" name="row[consume_res]" type="number" value="">
        </div>
    </div>

    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Contribute_res')}%:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-contribute_res" data-rule="" class="form-control" name="row[contribute_res]" type="number" value="">
        </div>
    </div>

    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('消费积分返点')}%:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-integer_res" data-rule="" class="form-control" name="row[integer_res]" type="number" value="">
        </div>
    </div>







    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], 'normal')}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

